<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\GkyUser;
use kartik\widgets\Select2;
use yii\helpers\ArrayHelper;

/* @var $this yii\web\View */
/* @var $model app\models\Course */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="course-form">
    
    <h4><?= Html::encode($model->isNewRecord ? '新建课程>>' : '更新课程>>') ?></h4>
    <div class="panel panel-default">
        <!--<div class="panel-heading text-center" style="background: #003eff;color:white">course</div>-->
        <div class="panel-body">
            <?php
            $form = ActiveForm::begin([
                        'options' => ['class' => 'form-horizontal form-group'],
                        'fieldConfig' => [
                            'template' => "{label}<div class=\"col-lg-8\">{input}</div>",
                            'labelOptions' => ['class' => 'col-lg-4', 'style' => 'margin-right:-30px'],
                        ]
            ]);
            ?>
            <div class="row">
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'coursename')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'courseno')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'creadit')->textInput() ?>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'grade')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'allperiod')->textInput() ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'profession')->textInput(['maxlength' => true]) ?>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'classtype1')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'classtype2')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'classes')->textInput(['maxlength' => true]) ?>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'checktype')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'studentnum')->textInput() ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'teachperiod')->textInput() ?>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'testperiod')->textInput() ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'machineperiod')->textInput() ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'otherperiod')->textInput() ?>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'weekperiod')->textInput() ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'teachweek')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'examineweek')->textInput(['maxlength' => true]) ?>
                </div>
            </div>


            <div class="row">
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'teacher')->textInput() ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'siterequirement')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'arrangerequirement')->textInput(['maxlength' => true]) ?>
                </div>
            </div>








            <div class="row">
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'mark')->textInput(['maxlength' => true]) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'isfinish')->dropDownList(['1' => '是', '0' => '否'], ['prompt' => '请选择']) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'mon')->dropDownList(['1' => '上午', '2' => '下午', '3' => '全天'], ['prompt' => '请选择']) ?>
                </div>
            </div>
            <div class="row">

                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'tue')->dropDownList(['1' => '上午', '2' => '下午', '3' => '全天'], ['prompt' => '请选择']) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'wed')->dropDownList(['1' => '上午', '2' => '下午', '3' => '全天'], ['prompt' => '请选择']) ?>
                </div>

                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'thu')->dropDownList(['1' => '上午', '2' => '下午', '3' => '全天'], ['prompt' => '请选择']) ?>
                </div>
            </div>
            <div class="row">

                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'fri')->dropDownList(['1' => '上午', '2' => '下午', '3' => '全天'], ['prompt' => '请选择']) ?>
                </div>
                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?= $form->field($model, 'term')->textInput(['maxlength' => true]) ?>
                </div>

                <div class="col-lg-4 col-xs-12 col-sm-4 col-md-4">
                    <?php // echo $form->field($model, 'regmatch')->textarea(['rows' => 6]) ?>
                </div>

            </div>

            <div class="col-lg-12 col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <?= Html::submitButton('保存', ['class' => 'btn btn-success col-lg-offset-5 col-md-offset-5']) ?>
                    <?= Html::a('返回', ['index'], ['class' => 'btn btn-primary']) ?>
                </div>
            </div>

            <?php ActiveForm::end(); ?>
        </div>
    </div>

</div>
